Optimal. Leaf size=16 \[ \frac{\cos (x) \tanh ^{-1}(\sin (x))}{\sqrt{a \cos ^2(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0140495, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3207, 3770} \[ \frac{\cos (x) \tanh ^{-1}(\sin (x))}{\sqrt{a \cos ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3207
Rule 3770
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{a \cos ^2(x)}} \, dx &=\frac{\cos (x) \int \sec (x) \, dx}{\sqrt{a \cos ^2(x)}}\\ &=\frac{\tanh ^{-1}(\sin (x)) \cos (x)}{\sqrt{a \cos ^2(x)}}\\ \end{align*}
Mathematica [B] time = 0.0175431, size = 46, normalized size = 2.88 \[ \frac{\cos (x) \left (\log \left (\sin \left (\frac{x}{2}\right )+\cos \left (\frac{x}{2}\right )\right )-\log \left (\cos \left (\frac{x}{2}\right )-\sin \left (\frac{x}{2}\right )\right )\right )}{\sqrt{a \cos ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.708, size = 48, normalized size = 3. \begin{align*}{\frac{\cos \left ( x \right ) }{\sin \left ( x \right ) }\sqrt{a \left ( \sin \left ( x \right ) \right ) ^{2}}\ln \left ( 2\,{\frac{\sqrt{a}\sqrt{a \left ( \sin \left ( x \right ) \right ) ^{2}}+a}{\cos \left ( x \right ) }} \right ){\frac{1}{\sqrt{a}}}{\frac{1}{\sqrt{a \left ( \cos \left ( x \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.67617, size = 51, normalized size = 3.19 \begin{align*} \frac{\log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \sin \left (x\right ) + 1\right ) - \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \sin \left (x\right ) + 1\right )}{2 \, \sqrt{a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.17792, size = 182, normalized size = 11.38 \begin{align*} \left [-\frac{\sqrt{a \cos \left (x\right )^{2}} \log \left (-\frac{\sin \left (x\right ) - 1}{\sin \left (x\right ) + 1}\right )}{2 \, a \cos \left (x\right )}, -\frac{\sqrt{-a} \arctan \left (\frac{\sqrt{a \cos \left (x\right )^{2}} \sqrt{-a} \sin \left (x\right )}{a \cos \left (x\right )}\right )}{a}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{a \cos \left (x\right )^{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]